@echo off
echo Starting test for protocol compatibility...
echo.

echo Step 1: Starting Gate Server...
cd gate-server
start "Gate Server" mvn spring-boot:run -Dspring-boot.run.jvmArguments="-Dserver.port=40001"
cd ..

echo Waiting for server to start...
timeout /t 10 /nobreak

echo Step 2: Running Protocol Robot Client...
cd robot-client
java -cp "target/classes;../common/target/classes" com.gzc.just.play.last.war.robot.client.RobotProtocolClient
cd ..

echo Test completed.